import type { ComponentInternalInstance } from 'vue'
import { getCurrentInstance } from 'vue'
export default () => {
  const { appContext, proxy } = getCurrentInstance() as ComponentInternalInstance
  const context = appContext.config.globalProperties
  if (proxy && context) {
    return { context, proxy }
  }
}
